package net.maku.im.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.maku.framework.common.query.Query;
import net.maku.framework.common.utils.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
* 私聊消息查询
*
* @author Blue 
* @since 1.0.0 2024-07-19
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "私聊消息查询")
public class ImPrivateMessageQueryDTO extends Query {

    @Schema(description = "发送用户id")
    private Long sendId;

    @Schema(description = "接收用户id")
    private Long recvId;

    @Schema(description = "发送内容")
    private String content;

    @Schema(description = "消息类型 0:文字 1:图片 2:文件 3:语音 21:系统提示")
    private Integer type;

    @Schema(description = "状态 0:未读 1:已读 2:撤回 3:已读")
    private Integer status;

    @Schema(description = "发送时间")
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private List<Date> sendTime;

}